From e9bf40dbce3289dd55da01a7252b0eccab4cb68f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 7 Jun 2010 07:49:07 +0100 Subject: [PATCH] xl: fix 'xl help' command xl help 'command' should give the help of the 'command', but current it does not, it just gives a full list of xl supported commands. This patch fix it. Signed-off-by: Yang Hongyang --- tools/libxl/xl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 8ddba288d3..226b013513 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -76,7 +76,7 @@ int main(int argc, char **argv) if (i >= cmdtable_len) { if (!strcmp(cmd, "help")) { - help(argv[1]); + help(argv[2]); exit(0); } else { fprintf(stderr, "command not implemented\n"); -- 2.30.2